<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .a1 {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 50px;
        }
        a {
            color: #ffffff;
            text-decoration: none;
            font-size: 16px;
            background-color: pink;
            margin-right: 10px;
            display: inline-block;
            text-align: center;
            width: 100px;
            height: 30px;
            line-height: 30px;
        }
        a:hover {
            background-color: orange;
        }
    </style>
</head>
<body>
    <div class="a1">
        <a href="#">新闻</a>
        <a href="#">体育</a>
        <a href="#">汽车</a>
        <a href="#">娱乐</a>
    </div>
</body>
</html>
